package com.jy.rhin.facade.ws.basic.wsEntry;

import com.jy.rhin.facade.ws.basic.wsEntry.exception.RhinWSException;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

import static com.jy.rhin.config.NamespaceConstants.NS_RHIN;

@WebService(targetNamespace = NS_RHIN, name = "RhinEntryProvider")
public interface RhinEntryProvider {

    @WebMethod(operationName = "HIPMessageServer", action = "HIPMessageServer")
    @RequestWrapper(localName = "HIPMessageServer", targetNamespace = NS_RHIN, className = "myws.HIPMessageServer")
    @ResponseWrapper(localName = "HIPMessageServerResponse", targetNamespace = NS_RHIN, className = "myws.HIPMessageServerResponse")
    @WebResult(name = "return", targetNamespace = NS_RHIN)
    String hipMessageServer(@WebParam(name = "action", targetNamespace = NS_RHIN) String action,
                            @WebParam(name = "message", targetNamespace = NS_RHIN) String message
    );
}
